<%@ page import="com.cn.util.SqlsesstionUtil" %>
<%@ page import="com.cn.entity.user.User" %>
<%@ page import="java.util.List" %>
<%@ page import="com.cn.Mapper.enployeeMapper.EmployeeMapper" %>
<%@ page import="com.cn.entity.enployee.Employee" %>
<%@ page import="org.apache.ibatis.session.SqlSession" %>
<%@ page import="com.cn.Mapper.shopMapper.ShopMapper" %>
<%@ page import="com.cn.entity.shop.Shop" %><%--
  Created by IntelliJ IDEA.
  User: yujiajing
  Date: 2022/10/3
  Time: 14:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>Title</title>
    <%--  引入jQuery包  --%>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.1/jquery.js"></script>

    <!-- 引入layui css -->
    <link rel="stylesheet" type="text/css" href="https://www.layuicdn.com/layui-v2.5.6/css/layui.css" />

    <!-- 引入layui js -->
    <script src="https://www.layuicdn.com/layui-v2.5.6/layui.js"></script>

</head>

<body>

<script>

</script>

<%
    SqlSession sqlSession = SqlsesstionUtil.getSqlSession();
    ShopMapper shopMapper =sqlSession.getMapper(ShopMapper.class);
    List<Shop> shopList= shopMapper.showShop();
%>
<table id="UserTable" class="layui-table"  >

    <tr>
        <td>店号</td>
        <td>店名</td>
        <td>店长</td>
        <td >人员情况</td>
       <td>评级</td>
    </tr>

    <%for (Shop shop:shopList){%>
    <%--  --%>
    <tr >
        <%--    --%>
        <td><%=shop.getShop_id()%></td>
        <td><%=shop.getShop_name()%></td>
        <td><%=shop.getShop_master()%></td>
        <td><%=shop.getShop_peopleNum()%></td>
        <td><%=shop.getShop_grade()%></td>
        <%}%>
    </tr >
</table>
<a href="InsertUser.jsp?">新驻商铺</a>
</body>
</html>
